<?php

class AdresaPeer extends BaseAdresaPeer
{
  static function getForClient($id, $tip=null)
  {
    $c = new Criteria();
    $c->add(self::CLIENT_ID, $id);
    if ($tip) $c->add(self::TIP, "%$tip%", Criteria::LIKE); 
    return self::doSelect($c);
  }
}
